package com.fastloan.mgt.jx.model.dto;

import javax.validation.constraints.NotNull;
import java.util.StringJoiner;

/**
 * 订单状态通知
 *
 * @author chenkai
 * createTime 2018-01-2018/1/7 16:15
 */
public class JxApplicationStateDTO {
    /**
     * 接入方流水号
     */
    @NotNull
    private String agent_order_id;

    /**
     * 0：未确定，1：已确定，当订单为已确定时，乾康通知放款
     */
    @NotNull
    private Integer order_status;

    /**
     * 机构编号
     */
    @NotNull
    private String agent_id;

    public String getAgent_order_id() {
        return agent_order_id;
    }

    public void setAgent_order_id(String agent_order_id) {
        this.agent_order_id = agent_order_id;
    }

    public Integer getOrder_status() {
        return order_status;
    }

    public void setOrder_status(Integer order_status) {
        this.order_status = order_status;
    }

    public String getAgent_id() {
        return agent_id;
    }

    public void setAgent_id(String agent_id) {
        this.agent_id = agent_id;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", this.getClass().getSimpleName() + "[", "]")
                .add("agent_order_id = " + agent_order_id)
                .add("order_status = " + order_status)
                .toString();
    }
}
